package lx.utils.demo;

import android.util.Log;

public class WeatherBaseModel {
    WeatherModel weatherinfo;

    public void setWeatherinfo(WeatherModel weatherinfo) {
        this.weatherinfo = weatherinfo;
    }

    public WeatherModel getWeatherinfo() {
        return this.weatherinfo;
    }

    @Override
    public String toString() {
        if (this.weatherinfo == null) {
            Log.d("liuxu", "weather model null");
            return null;
        } else {
            Log.d("liuxu", "weather model not null");
            return this.weatherinfo.toString();
        }
    }
}
